﻿#include <iostream>
#include <thread>

void say_hello() {
    std::cout << "Hello from thread!" << std::endl;
}

int main() {
    std::thread t(say_hello);  // 创建线程
    t.join();  // 等待线程执行完
    return 0;
}
